package com.bosssoft.springboot.demo1.service;

import com.bosssoft.springboot.demo1.model.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description 业务层用户接口
 * @author ChenTong
 */
@Transactional
public interface UserService {
    List<User> listAll();

    boolean insert(User user);

    boolean remove(Long id);

    boolean update(User user);

    User getUserByName(String name);

    boolean login(String username, String password);
}
